package a.f.j.a;

abstract class i
{
  a a = new a();
  
  abstract String a();
  
  String c()
  {
    return this.a.toString();
  }
  
  a d()
  {
    return this.a;
  }
  
  e a(e parame)
  {
    return this.a.d(parame);
  }
  
  e e()
  {
    return this.a.i();
  }
  
  e f()
  {
    return this.a.j();
  }
  
  e a(int paramInt)
  {
    return paramInt == 0 ? this.a.i() : this.a.j();
  }
  
  int a(e parame, int paramInt)
  {
    boolean bool = c.i;
    if (!bool) {
      if (!this.a.p()) {
        return paramInt;
      }
    }
    if (!bool) {
      if (this.a.i() == parame) {
        return 0;
      }
    }
    if (this.a.j() == parame) {
      return 1;
    }
    throw new RuntimeException("Edge " + parame.toString() + " not adjacent to the node" + toString() + "!");
  }
  
  e g()
  {
    boolean bool = c.i;
    if (!bool) {
      if (this.a.i().c()) {
        return this.a.e().c().a();
      }
    }
    if ((bool) || (this.a.j().c())) {
      return this.a.f().c().a();
    }
    return null;
  }
  
  boolean i()
  {
    return this.a.p();
  }
  
  g b(e parame)
  {
    return this.a.a(parame);
  }
  
  g c(e parame)
  {
    return this.a.b(parame);
  }
  
  void c(int paramInt)
  {
    boolean bool = c.i;
    i locali = null;
    e locale = null;
    if (!bool) {
      if (paramInt == 0)
      {
        if (bool) {
          break label66;
        }
        if (this.a.i().b())
        {
          locali = this.a.i().a(this);
          locale = this.a.e().c().a();
          break label132;
        }
      }
    }
    label66:
    if ((bool) || ((paramInt == 1) && ((bool) || (this.a.j().b()))))
    {
      locali = this.a.j().a(this);
      locale = this.a.f().c().a();
    }
    else
    {
      throw new RuntimeException("Couldn't find any Shortcut-Edge!");
    }
    label132:
    if (!bool) {
      if (locali.e() == locale)
      {
        if (bool) {
          break label168;
        }
        locali.d().e().c();
      }
    }
    label168:
    if ((c.h) && ((bool) || (locali.f() == locale))) {
      locali.d().f().c();
    }
  }
  
  void a(e parame1, e parame2, int paramInt)
  {
    boolean bool2 = c.i;
    boolean bool1 = c.h;
    if (!bool2) {
      if (this.a.i() == parame2)
      {
        if (!bool2) {
          if (!i())
          {
            if (!bool2) {
              if (paramInt == 0)
              {
                c(parame1);
                if (!bool2) {
                  if (!bool1) {
                    return;
                  }
                }
              }
              else
              {
                b(parame1);
              }
            }
            if (!bool2) {
              if (!bool1) {
                return;
              }
            }
          }
          else
          {
            if (bool2) {
              break label96;
            }
            c(parame1);
          }
        }
        if (!bool1) {
          return;
        }
      }
    }
    label96:
    if ((bool2) || (this.a.j() == parame2))
    {
      b(parame1);
      if (!bool1) {}
    }
    else
    {
      throw new RuntimeException("Edge was not found!");
    }
  }
  
  void d(e parame)
  {
    boolean bool2 = c.i;
    boolean bool1 = c.h;
    if (!bool2)
    {
      if (this.a.i() == parame)
      {
        if (bool2) {
          break label46;
        }
        this.a.e().c();
        if (!bool1) {
          return;
        }
      }
      label46:
      if (bool2) {}
    }
    else if (this.a.j() == parame)
    {
      if (bool2) {
        break label80;
      }
      this.a.f().c();
      if (!bool1) {
        return;
      }
    }
    label80:
    this.a.c(parame);
  }
  
  abstract int j();
  
  boolean k()
  {
    return false;
  }
  
  abstract k l();
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.j.a.i
 * JD-Core Version:    0.7.0.1
 */